home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_02_07
/
2n07017a
< prev
next >
Wrap
Text File
|
1991-06-02
|
595b
|
37 lines
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include "timer.h"
int TIMER::OutOfTimers() { return TRUE; }
#include "common.c"
void TIMER::InitTimerPackage(HANDLE Instance)
{
TD.CallBack = MakeProcInstance(
(FARPROC)&TimerCallBack, Instance);
}
TIMER::TIMER(int EventId)
{
InitTimer(this, EventId);
}
TIMER::~TIMER()
{
DeleteTimer(this);
}
int TIMER::Start(ULONG Interval)
{
return SetInterval(this, Interval);
}
void TIMER::Stop()
{
SetInterval(this, 0);
}